package com.example.laundry.repository;

import com.example.laundry.entity.LaundryOrderEntity;
import com.example.laundry.entity.OrderStatusHistoryEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderStatusHistoryRepository extends JpaRepository<OrderStatusHistoryEntity, Long> {
    List<OrderStatusHistoryEntity> findByOrder(LaundryOrderEntity order);
    List<OrderStatusHistoryEntity> findByOrderOrderByCreatedAtDesc(LaundryOrderEntity order);
}